<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?=$cfg["titrewiki"]?></title>
    
		<link href="<?=$cfg['css_dir']?>style_edit.css" rel="stylesheet" type="text/css" />
		<script type="text/javascript"  src="<?=$cfg['js_dir']?>jquery.js"></script>
		<script type="text/javascript"  src="<?=$cfg['js_dir']?>jquery_std.js"></script>
		<script type="text/javascript"  src="<?=$cfg['js_dir']?>barreOutils.js" ></script>
    <script type="text/javascript" > _baseUrl="<?=makeUrl()?>"; _isLogged=<?=($cfg['islogged']==true)*1?>;</script>
    <script type="text/javascript"  src="<?=$cfg['js_dir']?>action_edit.js" ></script>
		<script type="text/javascript" >

    </script>
</head>
<body style="overflow:hidden;">
  <div id="page" >
    <div id="top">
      <a href="<?=makeUrl($pagename)?>&logout=1" style="float:right;">logout</a>
      <span id="titre">
        Edition de la page : 
        <?=str_replace("#","/",$pagename);?>
      </span> 
    </div>
    <!-- fin div top -->
    <div id="barre1" >
      <div>
        Langue<br />
        <select id="selectLangue" name="selectLangue">
          <?foreach ($cfg['lang_names'] as $key => $val):?>
          <option value ="<?=makeUrl(basePagename($pagename))?>&lang=<?=$key?>&do=edit" 
          <?if($key==$cfg['lang']) echo "selected";?>>
          <?=$val?>
          </option>
          <?endforeach;?>
        </select>
      </div>
      <div>
        Page<br />
        <select id="selectPage" >
          <?=selectAllPages($pagename);?>
        </select>
      </div>
      <div>
        Versions<br />
        <select id="selectVersion" >
          <?foreach($versions as $version):?>
          <option value ="<?=makeUrl($version["name"])?>&do=edit"  <?if($version["name"]==$pagename) echo "selected";?> >
          <?=$version["date"]?>
          </option>
          <?endforeach;?>
        </select>
      </div>
      <div>
        Actions<br />
        <div>
          <a href="#" id="btCreatePage" class="bouton" >Nouvelle page</a>
          <a href="#" id="btDeletePage" class="bouton" >Supprimer cette page</a>
          <a href="#" id="btHelp" class="bouton" >Aide</a>
        </div>
      </div>
      <div style="float:right"><br />
        <a href="javascript:document.myForm.submit();" class="bouton" >Enregistrer</a>
        <a href="<?=makeUrl($pagename)?>" class="bouton" >Annuler</a>
      </div>
    </div>
    <!-- fin div barre1 --> 
    <div id="content">
      <div id="barreOutils">
        <a title="Mettre en ::italique::" href="javascript:barre_raccourci('::','::',document.myForm.content)">
          <img src="<?=$cfg['img_dir']?>italique.gif" /></a>
        <a title="Mettre en **gras**" href="javascript:barre_raccourci('**','**',document.myForm.content)">
          <img src="<?=$cfg['img_dir']?>gras.gif" /></a>
        <a title="__souligner__" href="javascript:barre_raccourci('__','__',document.myForm.content)">
          <img src="<?=$cfg['img_dir']?>souligne.gif" /></a>
        <a title="Transformer en !Titre" href="javascript:barre_raccourci('\n!','',document.myForm.content)">
          <img src="<?=$cfg['img_dir']?>titre.gif" /></a>
        <a title="Transformer en !Sous-titre" href="javascript:barre_raccourci('\n!!','',document.myForm.content)">
          <img src="<?=$cfg['img_dir']?>soustitre.gif" /></a>
        <div style="float:left;width:10px;">
          &nbsp;
        </div>
        <a href="javascript:barre_raccourci('«','»',document.myForm.content)" title="Entourer de «guillemets»">
          <img src="<?=$cfg['img_dir']?>guillemets.gif" /></a>
        <a href="javascript:barre_raccourci('“','”',document.myForm.content)" title="Entourer de “guillemets”">
          <img src="<?=$cfg['img_dir']?>guillemets-simples.gif" /></a>
        <a href="javascript:barre_inserer('À',document.myForm.content)" title="Insérer un A accent grave majuscule">
          <img src="<?=$cfg['img_dir']?>agrave-maj.gif" /></a>
        <a href="javascript:barre_inserer('É',document.myForm.content)" title="Insérer un E accent aigu majuscule">
          <img src="<?=$cfg['img_dir']?>eacute-maj.gif" /></a>
        <a href="javascript:barre_inserer('œ',document.myForm.content)" title="Insérer un E dans l'O">
          <img src="<?=$cfg['img_dir']?>oelig.gif" /></a>
        <a href="javascript:barre_inserer('Œ',document.myForm.content)" title="Insérer un E dans l'O majuscule">
          <img src="<?=$cfg['img_dir']?>oelig-maj.gif" /></a>
        <div style="float:left;width:10px;">
          &nbsp;
        </div>
        <a href="javascript:barre_demande('[[','|',']]', 'Veuillez indiquer l\'adresse de votre lien (vous pouvez indiquer une adresse Web sous la forme http://www.monsite/com ou simplement indiquer le nom d\'un article de ce site.', document.myForm.content)" title="Transformer en [lien hypertexte|http://...]">
          <img src="<?=$cfg['img_dir']?>lien.gif" /></a>
        <a  href="#" id="btMediamgr" title="Gestionnaire d'images" >
          <img src="<?=$cfg['img_dir']?>media.gif" /></a>
        <a  href="#" class="" title="Plugins (En construction...)" >
          <img src="<?=$cfg['img_dir']?>plugin.gif" /></a>
        <div style="float:right" >
          &nbsp;
        </div>
        <div style="clear:both;">
        </div>
      </div>
      <div id="editForm">
        <form name="myForm" method="post" action="<?=makeUrl($pagename)?>&do=save">
<textarea name="content" id="textarea1"
onselect='storeCaret(this);'
onclick='storeCaret(this);'
onkeyup='storeCaret(this);'
ondblclick='storeCaret(this);'
wrap='soft'><?=$content?>
</textarea>
        </form>
      </div>
      <!-- fin div content -->
    </div>
    <!-- Dernière modification : <?=$lastmodified?> -->
    <div id="help" class="lightbox">
      One * before a line puts bullets in front of it<br />
      One or more ! make it a headline<br />
      ** to make something 
      <b>bold</b><br />
      '' to make it 
      <i>italic</i><br />
      | puts it in a 
      <span style="box">
        box
      </span><br />
      space at the beginning of a line makes it preformatted<br />
      [url|link] to create a hyperlink to somewhere on the web<br />
      <a href="#" class="close" >close</a>
    </div>
    <div id="mediamgr" class="lightbox">
      <iframe	id="mediamgriframe" name="mediamgriframe" src="" >
        </iframe>
    </div>
</body>
</html>
